<!--
 * @Descripttion: 
 * @version: 
 * @Author: wl
 * @Date: 2020-07-06 11:49:39
 * @LastEditors: wl
 * @LastEditTime: 2020-07-06 15:08:56
-->
<template>
  <div>
    <div class="table-tool">
      <div class="content-toolbar">
        <div class="content-t-left">
          <slot name="head-tool"></slot>
        </div>
        <div v-if="refreshTool" class="content-t-right" @click="refresh">
          <p>刷新</p>
        </div>
      </div>
    </div>
    <slot name="self-top"></slot>
    <div class="table-content" ref='box'>
      <el-table :header-cell-style="{ background: '#e7eaf0', color: '#606266' }" :data='data' :border='resize' ref="table" style="width:100%;" @sort-change='handleSort'
        @selection-change='hangdleSelectionChange' :row-key="getKey" v-loading='loading'>
        <el-table-column fixed="left" type="selection" width="46" align="center" v-if="selectionOpen"
          :reserve-selection="resetChoose">
        </el-table-column>
        <el-table-column v-if="seq" type="index" label='序号' align="center" show-overflow-tooltip>
          <template slot-scope="scope">
            <span>
              {{scope.$index+1+(filters.page ? (filters.page-1)*filter.pageSize:0)}}
            </span>
          </template>
        </el-table-column>
        <slot></slot>
        <el-table-column v-if="tool&&tableTool.length>0" label='操作' fixed="right" width="110" align="center">
            <template slot-scope="scope">
                <table-tool :tool='tableTool' :row='scope.row'>
                </table-tool>

                </template>
        </el-table-column>

      </el-table>

    </div>
  </div>
</template>

<script>
import tableTool from '/table-tool'
  export default {

  }

</script>

<style>

</style>
